const { defineConfig } = require('@vue/cli-service')
module.exports = defineConfig({
  transpileDependencies: true,
  lintOnSave: false,
  devServer: {
    open: true,
    client: {
      overlay: false
    },
    port: 8001,
    allowedHosts: [
      'ic93358qh376.vicp.fun',
      '.ic93358qh376.vicp.fun'
    ],
    proxy: {
      '/api': {
        // target: 'http://LocalBackend:8000',
        target: 'http://localhost:8000',
        // target: 'http://ZhuComputer:8000',
        changeOrigin: true,
        pathRewrite: {
          '^/api': ''
        }
      }
    }
  }
})
